Skip to content

Commit

Permalink
Update layout.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Mar 13, 2020
1 parent 042b6e2 commit e1b30f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/templates/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
echo "<meta name='url' content='".$settings['siteurl']."'/>\n";
echo "<meta name='keywords' content='".$settings['keywords']."'/>\n";
echo "<meta name='image' content='".$settings['siteurl'].$settings['sitebanner']."'/>\n";
echo "<link rel='canonical' href='https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."'>\n";
$is_https = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
echo "<link rel='canonical' href='http".($is_https ? 's' : '')."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."'>\n";

if (fusion_get_enabled_languages() > 1) {
echo "<link rel='alternate' hreflang='x-default' href='".$settings['siteurl']."'/>\n";
Expand Down

0 comments on commit e1b30f1

Please sign in to comment.